/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.configs;

/**
 *
 * @author Administrator
 */
public class ValidatorConfig {
    /////// max, min character
    
    
    /**
     * password max character
     */
    public static final int PASSWORD_MAX_CHARACTER = 30;
    
    /**
     * password min character
     */
    public static final int PASSWORD_MIN_CHARACTER = 5;
    
  
    /**
     * email max character
     */
    public static final int EMAIL_MAX_CHARACTER = 200;
    
    /**
     * emai min character
     */
    public static final int EMAIL_MIN_CHARACTER = 9;
    /////////////////////////////////////////////////////////////////////////
    
    //// regular expression pattent
    
    /**
     * pattern cho username
     */
    public static final String USERNAME_PATTERN = "^[a-zA-Z0-9]([._](?![._])|[a-zA-Z0-9]){4,28}[a-zA-Z0-9]$";
    
    /**
     * pattern cho fullName
     */
    public static final String FULLNAME_PATTERN = "^([ ](?![ ])|[a-zA-ZàáạảãâầấậẩẫăằắặẳẵèéẹẻẽêềếệểễìíịỉĩòóọỏõôồốộổỗơờớợởỡùúụủũưừứựửữỳýỵỷỹÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠỲÝỴỶỸĐđ]){6,100}$";
}
